﻿//
// Copyright (c) 2024 BPer
//

#ifndef BPERAUDIOPROC_BPERRESAMPLE_H_
#define BPERAUDIOPROC_BPERRESAMPLE_H_

#include <bperutil/BPerType.h>
typedef struct{
	void* context;
	void (*init)(void* pcontext,int32_t pchannel,int32_t pinsample,int32_t poutsample);
	void (*resample)(void* context,const short *pin,uint32_t  pinLen,short* pout,uint32_t  *poutLen);
}BPerResample;
#ifdef __cplusplus
extern "C"{
#endif
void bPer_create_resample(BPerResample* res);
void bPer_destroy_resample(BPerResample* res);
#ifdef __cplusplus
}
#endif

#endif /* BPERAUDIOPROC_BPERRESAMPLE_H_ */
